

package com.hazelcast.map.impl.record;

import com.hazelcast.internal.serialization.Data;

/**
 * Factory for creating records. Created for every partition.
 *
 * @param <T> the type of object which is going to be created.
 */
public interface RecordFactory<T> {

    Record<T> newRecord(Data key, Object value);
}
